import Vue from 'vue'
import App from './App.vue'
import router from "./router/router"
import TypeNav from "@comp/TypeNav"
import Swiper from "@comp/Swiper"
import Pagination from "@comp/Pagination"

//引入vuex中的store
import store from "@/store"
//引入mock数据
import "@/mock"

/* import request from "@/request/request"
const re = request.get("/api/product/getBaseCategoryList")
console.log(re,"re"); */

// 注册全局组件typeNav
Vue.component("TypeNav", TypeNav)
// 注册全局组件Swiper
Vue.component("Swiper", Swiper)
// 注册全局组件Pagination
Vue.component("Pagination", Pagination)


Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router: router,
  //注入store
  store: store,
  beforeCreate() {
    Vue.prototype.$bus = this
  }
}).$mount('#app')